package com.example.factory.absfactory.pay;

/**
 * @author zhoubin
 */
public class PayFactory implements IAbstractPayFactory {
    @Override
    public IPay createAliPay() {
        return new AliPayFactory().createPayWay();
    }

    @Override
    public IPay createWeChatPay() {
        return new WeChatPayFactory().createPayWay();
    }

    @Override
    public IPay createUnionPay() {
        return new UnionPayFactory().createPayWay();
    }

    @Override
    public IPay createApplePay() {
        return new ApplePayFactory().createPayWay();
    }
}
